<%= form_for @cancellation_report, :url => timeslot_cancellation_report_url(@timeslot) do |f| %>
  <% if @cancellation_report.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@cancellation_report.errors.count, "error") %> prohibited this cancellation report from being saved:</h2>

      <ul>
      <% @cancellation_report.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :reason %><br />
    <%= f.select(:reason, options_for_select([['Student missing', 1], ['Student unfit to drive', 2], ['Student asked to cancel', 3], ['Instructor unable to attend', 4], ['Conditions not suitable', 5], ['Other', 6]], @cancellation_report.reason)) %>
  </div>
  <div class="field">
    <%= f.label :comment %><br />
    <%= f.text_area :comment %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
